<?php


namespace app\api\controller;


use app\BaseController;
use thans\jwt\facade\JWTAuth;

class Test extends BaseController
{
    public function testLogin()
    {
        $id = input('id',6);
        return json(['token'=>"bearer ".JWTAuth::builder(['uid' => $id])]);
    }

    public function test(){
        dd(cache('session_key6' ));
    }
}